from fastapi import APIRouter
from fastapi.responses import JSONResponse

__all__ = ["health_router"]

health_router = APIRouter(prefix="/health", tags=["health"])


@health_router.get(
    "/",
    summary="提供给k8s等部署环境的、后端服务的健康检查",
    operation_id="get_health_check",
)
async def health_check():
    return JSONResponse(content={"status": 0, "msg": "ok"})
